export interface ResponseData {
  code: number;
  message: string;
  ok:boolean
}

// 提交订单接口返回的订单id
export interface OrderIdResponseData extends ResponseData {
  data: number
}

// 订单详情数据ts
export interface OrderInfo {
    id: number;
    createTime: string;
    updateTime: string;
    isDeleted: number;
    param:{
      orderStatusString:string;
    }
    userId: number;
    outTradeNo: string;
    hoscode: string;
    hosname: string;
    depcode: string;
    depname: string;
    scheduleId: string;
    title: string;
    reserveDate: string;
    reserveTime: number;
    patientId: number;
    patientName: string;
    patientPhone: string;
    hosRecordId: string;
    number: number;
    fetchTime: string;
    fetchAddress: string;
    amount: number;
    quitTime: string;
    orderStatus: number;
}
// 订单接口返回的ts
export interface OrderInfoResponseData extends ResponseData  {
  data: OrderInfo
}

//获取二位码接口数据ts
export interface QRCodeInfo {
    codeUrl: string;
    orderId: number;
    totalFee: number;
    resultCode: string;
}
// 获取二位码返回ts
export interface QRCodeResponseData extends ResponseData {
  data: QRCodeInfo
}

// 查询支付结构的数据ts
export interface PayInfo extends ResponseData{
    data:boolean
}

// 用户信息的数据类型
export interface UserInfo {
    authStatus: number;
	certificatesNo: string;
	certificatesType: string;
	certificatesUrl: string;
	createsTime:string;
	id: number;
	isDeleted: number;
	name: string;
	nickName: string;
	openid: string;
	param: {
		age: string;
		certificateTypeString: string;
		authStatusString: string;
	};
	phone: string;
	status: number;
	updateTime: string;
}
// 接口返回ts
export interface UserInfoResponseData extends ResponseData {
  data: UserInfo
}

// 获取证件类型（身份证还是户口本）
export interface IdType {
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {};
  parentId: number;
  name: string;
  value: string;
  dictCode: string;
  hasChildren: boolean;
}

export type idTypeList = IdType[];

export interface IdTypeResponseData extends ResponseData {
	data: idTypeList
}

// 用户认证携带的参数
export interface UserParams {
	certificatesType: string;
	certificatesNo: string;
	certificatesUrl: string;
	name: string;
}

// 用户订单的数据类型
export interface Order {
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param:{};
  userId: number;
  outTradeNo: string;
  hoscode: string;
  hosname: string;
  depcode: string;
  depname: string;
  scheduleId: string;
  title: string;
  reserveDate: string;
  reserveTime: number;
  patientId: number;
  patientName: string;
  patientPhone: string;
  hosRecordId: string;
  number: number;
  fetchTime: string;
  fetchAddress: string;
  amount: number;
  quitTime: string;
  orderStatus: number;
}
export type OrderList = Order[];
export interface OrderListResponseData extends ResponseData {
	data: {
		records: OrderList;
		total: number;
		size: number;
		current: number;
		orders: [];
		hitCount: boolean;
		searchCount: boolean;
		pages: number;
	}
}

// 获取所有就诊人数据
export interface Patient {
	"id": number,
	"createTime": string,
	"updateTime": string,
	"isDeleted": number,
	"param": {
		"certificatesTypeString": string,
		"contactsCertificatesTypeString": string,
		"cityString": string,
		"fullAddress": string,
		"districtString": string,
		"provinceString": string
	},
	"userId": number,
	"name": string,
	"certificatesType":string,
	"certificatesNo": string,
	"sex": number,
	"birthdate": string,
	"phone": string,
	"isMarry": number,
	"provinceCode": string,
	"cityCode": string,
	"districtCode": string,
	"address": string,
	"contactsName": string,
	"contactsCertificatesType": string,
	"contactsCertificatesNo": string,
	"contactsPhone": string,
	"isInsure": number,
	"cardNo": string,
	"status": string
}

// 全部就诊人
export type PatientList = Patient[];
export interface PatientListResponseData extends ResponseData {
	data:PatientList
}

//订单状态
export interface status{
	comment: string;
	status: number;
}
export type statusList = status[];
export interface OrderStatusResponseData extends ResponseData {
	data:statusList
}

// 获取城市数据
export interface City {
	"id": number,
	"createTime": string,
	"updateTime": string,
	"isDeleted": number,
	"param": {},
	"parentId": number,
	"name": string,
	"value": string,
	"dictCode": string,
	"hasChildren": boolean
}
// 所有城市
export type CityList = City[];
// 接口返回数据ts
export interface CityResponseData extends ResponseData {
	data:CityList
}